<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<c:if test="${not empty studentTargetDatas}">
<table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
  <thead>
    <tr>
      <th>所属课次</th>
      <th>阶段目标</th>
      <th>长期目标</th>
      <th>创建时间</th>
    </tr>
  </thead>
  <tbody>
    <c:forEach var="studentTargetData" items="${studentTargetDatas}">
      <tr>
        <td>${studentTargetData.courseRound.course.name}</td>
        <td>${studentTargetData.shortTarget}</td>
        <td>${studentTargetData.longTarget}</td>
        <td><fmt:formatDate value="${studentTargetData.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
      </tr>
    </c:forEach>
  </tbody>
</table>
</c:if>
